package org.jmh.gift.domain;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lingfeng
 * @since 2024-07-20
 */
@TableName("t_position_role")
public class PositionRole extends Model<PositionRole> {

    private static final long serialVersionUID = 1L;

    @TableId("position_id")
    private Long positionId;
    @TableField("role_id")
    private Long roleId;


    public Long getPositionId() {
        return positionId;
    }

    public void setPositionId(Long positionId) {
        this.positionId = positionId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    protected Serializable pkVal() {
        return this.positionId;
    }

    @Override
    public String toString() {
        return "PositionRole{" +
        ", positionId=" + positionId +
        ", roleId=" + roleId +
        "}";
    }
}
